<!doctype html>
<html lang="en">
<head>
    <title>Grid - Scrolling</title>
    <meta charset="utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
    <meta name="description" content="wijgrid provides scrolling" />
    <meta name="keywords" content="" />
    <meta name="author" content="ComponentOne" />
    
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
    <meta name="description" content="wijgrid provides scrolling" />
    <meta name="keywords" content="" />
    <meta name="author" content="ComponentOne" />
    
    <link href="../../themes/rocket/jquery-wijmo.css" rel="stylesheet" type="text/css" />
    <link href="../../themes/wijmo/jquery.wijmo-open.2.3.2.css" rel="stylesheet" type="text/css" />
    <link href="../../themes/wijmo/jquery.wijmo.wijgrid.css" rel="stylesheet" type="text/css" />

    <script src="../../external/jquery-1.8.2.min.js" type="text/javascript"></script>
    <script src="../../external/jquery-ui-1.9.1.custom.min.js" type="text/javascript"></script>
    <script src="../../external/globalize.min.js" type="text/javascript"></script>
    <script src="../../external/jquery.mousewheel.min.js" type="text/javascript"></script>

    <script src="../../external/jquery.wijmo-open.all.2.3.2.min.js" type="text/javascript"></script>
    <script src="../../wijmo/jquery.wijmo.wijdatasource.js" type="text/javascript"></script>
    <script src="../../wijmo/jquery.wijmo.wijgrid.js" type="text/javascript"></script>
  
    <script id="scriptInit" type="text/javascript">
        $(document).ready(function () {
            $("#demo").height(300).wijgrid({
                data: (function (count) {
                    var arr = [];

                    for (var i = 0; i < count; i++) {
                        arr.push({ COL0: i, COL1: "COL1" + i, COL2: "COL2" + i });
                    }
                    return arr;
                })(100),
                scrollMode: "both",
                pageSize: 15,
                allowVirtualScrolling: true
            });
        });

    </script>
</head>
<body class="demo-single">
    <div class="container">
        <div class="header">
            <h2>Scrolling</h2>
        </div>
        <div class="main demo">
            <!-- Begin demo markup -->
            <table id="demo"></table>
        </div>
        <!-- End demo markup -->
        <div class="demo-options">
            <!-- Begin options markup -->
            <!-- End options markup -->
        </div>
    </div>
    <div class="footer demo-description">
        <p>
            This sample shows how to add a scrollbar to the grid.
        </p>
        <ul>
            <li>The <b>scrollMode</b> option determines the scrolling mode in which a scrollbar is added to the grid.
            </li>
            <li>The <b>staticRowIndex</b> option indicates the index of data rows that will always be shown on the top when the wijgrid is scrolled vertically.
            </li>
            <li>The <b>staticColumnIndex</b> option indicates the index  of columns that will always be shown on the left when the grid view scrolled horizontally. 
            </li>
        </ul>
    </div>
    </div>
</body>
</html>
